import request from '@/api/request'

export function addArticle(data) {
  return request({
    url: `/lejuAdmin/productArticle/addArticle`,
    method: 'post',
    data
  })
}

export function productArticle(id) {
  return request({
    url: `/lejuAdmin/productArticle/productArticle/${id}`,
    method: 'get'
  })
}

export function updateArticle(data) {
  return request({
    url: `/lejuAdmin/productArticle/updateArticle`,
    method: 'post',
    data
  })
}
